#!/bin/sh

#grep -in '^device_name' config.conf |awk '{print $2}'   ##匹配以device_name开头的行
#grep -in '^device_no.' config.conf | awk '{print $2 $3 $4s}'

#grep -in 's2$' config.conf | awk '{printf $1}'       ##匹配以s2结尾的行

#grep -in '\<Manufacture' config.conf |awk '{print $2}'   ##匹配Manufacture单词开始的行

#grep -in 'hello\>' config.conf |awk '{print $2}'      ##匹配以hello单词结尾的行

#grep -in '[r]' config.conf | awk '{print $1}'   ##匹配[]内字符的行

#grep -in '[^a]' config.conf | awk '{print $1}'   ##匹配不在[]内字符的行

#grep -in '\(server\)' config.conf | awk '{print $1}'   ##标记server字符的行#

grep -in '0\{3\}' config.conf     ##匹配包含3个0的行\{times\}

grep -c '0\{3\}' config.conf
